// laoban.cpp : implementation file
//

#include "stdafx.h"
#include "d.h"
#include "laoban.h"
#include "xiaosoutongji.h"
#include "yinglitongji.h"
#include "yuangongguanli.h"
#include "shangpinchaxun.h"
#include "quanxianguanli.h"
#include "xuanzhe.h";
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Claoban dialog


Claoban::Claoban(CWnd* pParent /*=NULL*/)
	: CDialog(Claoban::IDD, pParent)
{
	//{{AFX_DATA_INIT(Claoban)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void Claoban::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Claoban)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Claoban, CDialog)
	//{{AFX_MSG_MAP(Claoban)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	ON_BN_CLICKED(IDC_BUTTON7, OnButton7)
	ON_BN_CLICKED(IDC_BUTTON5, OnButton5)
	ON_BN_CLICKED(IDC_BUTTON11, OnButton11)
	ON_BN_CLICKED(IDC_BUTTON12, OnButton12)
	ON_BN_CLICKED(IDC_BUTTON13, OnButton13)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Claoban message handlers

void Claoban::OnButton1() 
{
	// TODO: Add your control notification handler code here
//	Cxiaosoutongji dlg;
//	this->ShowWindow(SW_HIDE);
//	dlg.DoModal();
//	this->ShowWindow(SW_SHOW);
		Cxiaosoutongji *DLG=new Cxiaosoutongji;
	DLG->Create(IDD_DIALOG9);
	DLG->ShowWindow(SW_NORMAL);
}

void Claoban::OnButton3() 
{
	// TODO: Add your control notification handler code here
//	Cyinglitongji dlg;
//	this->ShowWindow(SW_HIDE);
//	dlg.DoModal();
//	this->ShowWindow(SW_SHOW);
	Cyinglitongji *DLG=new Cyinglitongji;
	DLG->Create(IDD_DIALOG10);
	DLG->ShowWindow(SW_NORMAL);
}

void Claoban::OnButton2() 
{
	// TODO: Add your control notification handler code here
	//Cyuangongguanli dlg;
	//this->ShowWindow(SW_HIDE);
//	dlg.DoModal();
	//this->ShowWindow(SW_SHOW);
	Cyuangongguanli *DLG=new Cyuangongguanli;
	DLG->Create(IDD_DIALOG11);
	DLG->ShowWindow(SW_NORMAL);
}

void Claoban::OnButton7() 
{
	// TODO: Add your control notification handler code here
	Cshangpinchaxun *DLG=new Cshangpinchaxun;
	DLG->Create(IDD_DIALOG5);
	DLG->ShowWindow(SW_NORMAL);
}

void Claoban::OnButton5() 
{
	// TODO: Add your control notification handler code here
//	Cquanxianguanli dlg;
//	this->ShowWindow(SW_HIDE);
//	dlg.DoModal();
//	this->ShowWindow(SW_SHOW);
		Cquanxianguanli *DLG=new Cquanxianguanli;
	DLG->Create(IDD_DIALOG12);
	DLG->ShowWindow(SW_NORMAL);
}

void Claoban::OnButton11() 
{
	// TODO: Add your control notification handler code here
		exit(1);	
}

void Claoban::OnButton12() 
{
	// TODO: Add your control notification handler code here
	xuanzhe16=2;
   Cxuanzhe dlg;	
	 dlg.DoModal(); 
}

void Claoban::OnButton13() 
{
	// TODO: Add your control notification handler code here
		xuanzhe16=3;
   Cxuanzhe dlg;	
	 dlg.DoModal(); 
}
